package cn.mybatis.seeumt.controller;


import cn.mybatis.seeumt.entity.UserInfo;
import cn.mybatis.seeumt.service.IUserInfoService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Seeumt
 * @since 2019-12-13
 */
@RestController
@RequestMapping("/page")
public class UserInfoController {
    @Autowired
    private IUserInfoService userInfoService;
    @GetMapping("/")
    @ResponseBody
    public PageInfo<UserInfo> query(Integer num, Integer size) {
        return userInfoService.query(num, size);
    }
}
